/*
	iXsystems, Inc. 2010
	ligregni@freebsd.org
*/

#ifndef _FUNCTIONS_DISK_H_
#define _FUNCTIONS_DISK_H_

#include "utils/util_fdisk.h"
#include "utils/util_gpart.h"

int is_disk(char *);
int get_partition_sysid_mbr(char *, int);
const char * get_partition_label_mbr(char *, int);
const char * get_partition_label_gpt(char *disk, char *name);
ssize_t get_partition_startblock(char *disk, char *name);
ssize_t get_partition_blocksize(char *disk, char *name);
int get_disk_partitions(char *disk, const char ***array);
u_int get_disk_cyl(char *disk);
u_int get_disk_sectors(char *disk);
u_int get_disk_heads(char *disk);
u_int get_disk_mediasize(char *disk);


#endif // _FUNCTIONS_DISK_H_
